package io.github.talelin.latticy.dto.rule.chargePlan;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * @authoer:wulongbo
 * @createDate:2022/9/14
 * @description:
 */
@Data
public class ChargePlanDTO {

    /**
     * 计费方案名称
     */
    @NotBlank(message = "{charge-plan.name.not-blank}")
    private String name;

    /**
     * 入库数量
     */
    @Min(value = 0, message = "{charge-plan.warehousingAmount.reg}")
    private Integer warehousingAmount;

    /**
     * 出库数量
     */
    @Min(value = 0, message = "{charge-plan.exWarehouseAmount.reg}")
    private Integer exWarehouseAmount;

    /**
     * 退货数量
     */
    @Min(value = 0, message = "{charge-plan.returnGoodsAmount.reg}")
    private Integer returnGoodsAmount;

    List<Integer> ids;

    List<Integer> chargeItemIds;

}
